<?php

namespace App\Admin\Resources;

class WorshipAlbumResource extends JsonResource
{
    public function toArray($request)
    {
        $data = [
            'worship_hymns' => is_null($this->worship_hymns) ? [] : $this->worship_hymns
        ];
        return array_merge(parent::toArray($request),$data);
    }
}
